﻿using IBLL;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Model;

namespace ZY8.API.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class HotelTypeController : ControllerBase
    {
        public HotelTypeController(IHotelTypeBLL bll)
        {
            Bll = bll;
        }

        public IHotelTypeBLL Bll { get; }
        [HttpPost]
        public Task<int> AddHotelType(HotelTypeModel hoteltype)
        {
            return Bll.AddHotelType(hoteltype);
        }
        [HttpGet]
        public List<HotelTypeModel> HotelTypeShow()
        {
            return Bll.HotelTypeShow();
        }
    }
}
